package com.kjzy.mapper;

import com.kjzy.pojo.Appoint;
import com.kjzy.pojo.Reservation;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface TimeMapper {
    @Select("select * from appoint")
    List<Appoint> findAllTime(Appoint appoint);
    @Insert("insert into appoint(id,username,projecot,time) values(#{id},#{username},#{projecot},#{time})")
    int insertT(Appoint appoint);
    @Update("update appoint set time=#{time} where id=#{id}")
    int updateT(Appoint appoint);
    @Delete("delete form appoint where id=#{id}")
    int deleteT(int id);
}
